package ar.edu.unlp.info.tesis.database.operator;

import java.util.Collection;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Expression;

public class InsideCollectionRestriction extends OperatorRestriction {

	public InsideCollectionRestriction(String field, Object collection) {
		super(field, collection);
	}

	@Override
	public Criterion getExpresion() {
		return Expression.in(this.getField(), (Collection) this.getValue());

	}

}
